package com.vanrui.pcp.autocode.utils;


import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;

import com.vanrui.pcp.autocode.model.entry.Entry;
import com.vanrui.pcp.autocode.model.entry.ProjectClass;

public class DataInitUtil {
	
	private final static Logger logger = Logger.getLogger(DataInitUtil.class);
	
	public static void initClass(Entry entry, ProjectClass clazz){
		if(StringUtils.isBlank(entry.getTableName())){
			logger.error("表名为空");
			return;
		}
		//对entry处理
		entry.setEntryName(StringUtilu.getStrWithoutUnderline(entry.getTableName()));
		//对clazz处理
		clazz.setEntryName(entry.getEntryName());
		
		
	}

}
